﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcIoc.Service
{
    public interface IProteinTrackerService
    {
        double Total { get; set; }
        double Goal { get; set; }
        void AddProtein(double amount);
    }

    public class ProteinTrackerService : IProteinTrackerService
    {

        public double Total { get; set; }
        public double Goal { get; set; }

        public ProteinTrackerService()
        {
        }


        public void AddProtein(double amount)
        {
            this.Total += amount;
        }
    }
}